home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2422 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 63 |c.Subjec|t: Re: c|
|00000080| 70 70 20 71 75 65 73 74 | 69 6f 6e 0a 44 61 74 65 |pp quest|ion.Date|
|00000090| 3a 20 53 75 6e 2c 20 32 | 31 20 4a 61 6e 20 31 39 |: Sun, 2|1 Jan 19|
|000000a0| 39 36 20 30 33 3a 30 33 | 3a 34 32 20 2d 30 36 30 |96 03:03|:42 -060|
|000000b0| 30 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|000000c0| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 49 6f |Universi|ty of Io|
|000000d0| 77 61 2c 20 49 6f 77 61 | 20 43 69 74 79 2c 20 49 |wa, Iowa| City, I|
|000000e0| 41 2c 20 55 53 41 0a 44 | 69 73 74 72 69 62 75 74 |A, USA.D|istribut|
|000000f0| 69 6f 6e 3a 20 77 6f 72 | 6c 64 0a 4d 65 73 73 61 |ion: wor|ld.Messa|
|00000100| 67 65 2d 49 44 3a 20 3c | 50 69 6e 65 2e 41 33 32 |ge-ID: <|Pine.A32|
|00000110| 2e 33 2e 39 31 2e 39 36 | 30 31 32 31 30 33 30 31 |.3.91.96|01210301|
|00000120| 32 38 2e 33 33 33 35 39 | 4a 2d 31 30 30 30 30 30 |28.33359|J-100000|
|00000130| 40 72 65 64 2e 77 65 65 | 67 2e 75 69 6f 77 61 2e |@red.wee|g.uiowa.|
|00000140| 65 64 75 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |edu>.Ref|erences:|
|00000150| 20 3c 34 64 72 6d 39 39 | 24 6a 30 6d 40 70 65 61 | <4drm99|$j0m@pea|
|00000160| 62 6f 64 79 2e 63 6f 6c | 6f 72 61 64 6f 2e 65 64 |body.col|orado.ed|
|00000170| 75 3e 0a 4e 4e 54 50 2d | 50 6f 73 74 69 6e 67 2d |u>.NNTP-|Posting-|
|00000180| 48 6f 73 74 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Host: re|d.weeg.u|
|00000190| 69 6f 77 61 2e 65 64 75 | 0a 4d 69 6d 65 2d 56 65 |iowa.edu|.Mime-Ve|
|000001a0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|000001b0| 6e 74 2d 54 79 70 65 3a | 20 54 45 58 54 2f 50 4c |nt-Type:| TEXT/PL|
|000001c0| 41 49 4e 3b 20 63 68 61 | 72 73 65 74 3d 55 53 2d |AIN; cha|rset=US-|
|000001d0| 41 53 43 49 49 0a 58 2d | 53 65 6e 64 65 72 3a 20 |ASCII.X-|Sender: |
|000001e0| 72 6f 62 69 6e 73 6f 6e | 40 72 65 64 2e 77 65 65 |robinson|@red.wee|
|000001f0| 67 2e 75 69 6f 77 61 2e | 65 64 75 0a 49 6e 2d 52 |g.uiowa.|edu.In-R|
|00000200| 65 70 6c 79 2d 54 6f 3a | 20 3c 34 64 72 6d 39 39 |eply-To:| <4drm99|
|00000210| 24 6a 30 6d 40 70 65 61 | 62 6f 64 79 2e 63 6f 6c |$j0m@pea|body.col|
|00000220| 6f 72 61 64 6f 2e 65 64 | 75 3e 20 0a 0a 4f 6e 20 |orado.ed|u> ..On |
|00000230| 32 30 20 4a 61 6e 20 31 | 39 39 36 2c 20 57 4f 4f |20 Jan 1|996, WOO|
|00000240| 44 20 4a 41 4d 45 59 20 | 52 59 41 4e 20 77 72 6f |D JAMEY |RYAN wro|
|00000250| 74 65 3a 0a 0a 3e 20 49 | 20 68 61 76 65 20 73 6f |te:..> I| have so|
|00000260| 6d 65 74 68 69 6e 67 20 | 6c 69 6b 65 20 74 68 69 |mething |like thi|
|00000270| 73 3a 0a 3e 20 0a 3e 20 | 20 20 20 20 20 23 64 65 |s:.> .> | #de|
|00000280| 66 69 6e 65 20 55 53 45 | 52 4c 45 4e 20 38 0a 3e |fine USE|RLEN 8.>|
|00000290| 20 20 20 20 20 20 23 64 | 65 66 69 6e 65 20 48 4f | #d|efine HO|
|000002a0| 53 54 4c 45 4e 20 31 35 | 0a 3e 20 0a 3e 20 20 20 |STLEN 15|.> .> |
|000002b0| 20 20 20 63 68 61 72 20 | 6e 61 6d 65 5b 5d 20 3d | char |name[] =|
|000002c0| 20 22 77 6f 6f 64 6a 72 | 22 3b 0a 3e 20 20 20 20 | "woodjr|";.> |
|000002d0| 20 20 63 68 61 72 20 68 | 6f 73 74 5b 5d 20 3d 20 | char h|ost[] = |
|000002e0| 22 72 65 61 6c 6c 79 2e | 6c 6f 6e 67 2e 68 6f 73 |"really.|long.hos|
|000002f0| 74 6e 61 6d 65 2e 63 6f | 6d 22 3b 0a 3e 20 20 20 |tname.co|m";.> |
|00000300| 20 20 20 63 68 61 72 20 | 73 5b 31 30 30 5d 3b 0a | char |s[100];.|
|00000310| 3e 20 0a 3e 20 20 20 20 | 20 20 73 70 72 69 6e 74 |> .> | sprint|
|00000320| 66 28 73 2c 20 22 25 2e | 55 53 45 52 4c 45 4e 73 |f(s, "%.|USERLENs|
|00000330| 40 25 2e 48 4f 53 54 4c | 45 4e 73 22 2c 20 6e 61 |@%.HOSTL|ENs", na|
|00000340| 6d 65 2c 20 68 6f 73 74 | 29 3b 0a 3e 20 0a 3e 20 |me, host|);.> .> |
|00000350| 41 6e 64 20 49 20 77 61 | 6e 74 20 63 70 70 20 74 |And I wa|nt cpp t|
|00000360| 6f 20 70 61 72 73 65 20 | 74 68 65 20 73 70 72 69 |o parse |the spri|
|00000370| 6e 74 66 20 6c 69 6e 65 | 20 74 6f 3a 0a 3e 20 0a |ntf line| to:.> .|
|00000380| 3e 20 20 20 20 20 20 73 | 70 72 69 6e 74 66 28 73 |> s|printf(s|
|00000390| 2c 20 22 25 2e 38 73 40 | 25 2e 31 35 73 22 2c 20 |, "%.8s@|%.15s", |
|000003a0| 6e 61 6d 65 2c 20 68 6f | 73 74 29 3b 0a 3e 20 0a |name, ho|st);.> .|
|000003b0| 3e 20 57 68 69 63 68 20 | 69 74 20 28 6f 66 20 63 |> Which |it (of c|
|000003c0| 6f 75 72 73 65 29 20 69 | 73 6e 27 74 20 64 6f 69 |ourse) i|sn't doi|
|000003d0| 6e 67 2e 20 20 49 73 20 | 74 68 65 72 65 20 73 6f |ng. Is |there so|
|000003e0| 6d 65 20 73 79 6e 74 61 | 78 20 49 0a 3e 20 63 61 |me synta|x I.> ca|
|000003f0| 6e 20 75 73 65 20 74 6f | 20 67 65 74 20 69 74 20 |n use to| get it |
|00000400| 74 6f 20 64 6f 20 74 68 | 69 73 3f 0a 0a 20 20 48 |to do th|is?.. H|
|00000410| 65 72 65 27 73 20 6f 6e | 65 20 77 61 79 3a 0a 0a |ere's on|e way:..|
|00000420| 23 64 65 66 69 6e 65 20 | 55 53 45 52 4c 45 4e 20 |#define |USERLEN |
|00000430| 22 38 22 0a 23 64 65 66 | 69 6e 65 20 48 4f 53 54 |"8".#def|ine HOST|
|00000440| 4c 45 4e 20 22 31 35 22 | 0a 0a 73 70 72 69 6e 74 |LEN "15"|..sprint|
|00000450| 66 28 73 2c 20 22 25 2e | 22 20 55 53 45 52 4c 45 |f(s, "%.|" USERLE|
|00000460| 4e 20 22 73 40 25 2e 22 | 20 48 4f 53 54 4c 45 4e |N "s@%."| HOSTLEN|
|00000470| 20 22 73 22 2c 20 6e 61 | 6d 65 2c 20 68 6f 73 74 | "s", na|me, host|
|00000480| 29 3b 0a 0a 20 20 41 64 | 6a 61 63 65 6e 74 20 73 |);.. Ad|jacent s|
|00000490| 74 72 69 6e 67 20 6c 69 | 74 65 72 61 6c 73 20 61 |tring li|terals a|
|000004a0| 72 65 20 63 61 74 65 6e | 61 74 65 64 20 74 6f 67 |re caten|ated tog|
|000004b0| 65 74 68 65 72 20 61 74 | 20 63 6f 6d 70 69 6c 65 |ether at| compile|
|000004c0| 20 74 69 6d 65 2e 0a 0a | 2f 2a 2a 4a 61 6d 65 73 | time...|/**James|
|000004d0| 20 52 6f 62 69 6e 73 6f | 6e 2a 2a 2a 2a 2a 2a 2a | Robinso|n*******|
|000004e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 20 20 22 | | . "|
|00000500| 49 66 20 61 20 66 61 74 | 61 6c 20 65 72 72 6f 72 |If a fat|al error|
|00000510| 20 6f 63 63 75 72 73 2c | 20 74 68 65 20 70 72 6f | occurs,| the pro|
|00000520| 67 72 61 6d 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 |gram sho|uld not |
|00000530| 62 65 20 61 6c 6c 6f 77 | 65 64 20 74 6f 20 63 6f |be allow|ed to co|
|00000540| 6e 74 69 6e 75 65 2e 22 | 0a 20 2d 2d 20 4f 72 61 |ntinue."|. -- Ora|
|00000550| 63 6c 65 20 50 72 6f 2a | 43 20 55 73 65 72 27 73 |cle Pro*|C User's|
|00000560| 20 47 75 69 64 65 20 20 | 20 20 20 20 20 20 20 2a | Guide | *|
|00000570| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 6a 61 6d 65 |********|****jame|
|00000580| 73 2d 72 6f 62 69 6e 73 | 6f 6e 40 75 69 6f 77 61 |s-robins|on@uiowa|
|00000590| 2e 65 64 75 2a 2a 2f 0a | |.edu**/.| |
+--------+-------------------------+-------------------------+--------+--------+